package com.regulaforensics.date_reminder;

import android.app.Application;

public class MyAppDateReminder extends Application{

	private static ReminderDbAdapter db;
	
	@Override
	public void onTerminate() {
		super.onTerminate();
		db.close();
	}

	@Override
	public void onCreate()
	{

	    db=new ReminderDbAdapter(getApplicationContext());
	    db.open();
	}

	public static ReminderDbAdapter getDatabaseAdapter()
	{
	    return db;
	}
	
	public static void onDestroy()
	{
		 db.close();
	}
	
	
	
}
